# 使用for循环遍历计算列表中一共有多少数字
# sum =0
# list = [0,3,3,9,10,3,5]
# for i in list:
#     sum +=1
# print(sum)


# 计算列表中所有数字相加的总和
sum =0
list = [0,3,3,9,10,3,5]
for i in list:
    sum +=i
print(sum)